﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Hangu.WebClient.Controllers
{
    public class HomeController : BaseController
    {

        public ActionResult Index()
        {
            var ourServices = serviceUniversally.GetByID(3);
            if (ourServices != null)
            {
                ViewData["OurServices"] = ourServices.Remark;
            }
            ViewData["PhilosopherBema"] = servicePhilosopherBema.GetAndLecturerByClassType(1);
            SearchParma.Pagination.PageSize = 4;
            ViewData["News"] = serviceNews.GetAll(SearchParma);
            //SearchParma.Pagination.PageSize = 30;
            //ViewData["Bemas"] = servicePhilosopherBema.GetForTop(SearchParma);//精彩回顾
            IninFlashXml(1);
            return View();
        }

        public ActionResult About()
        {
            IninFlashXml(2);
            var model = serviceUniversally.GetByID(1);
            return View(model);
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "你的联系方式页。";

            return View();
        }
    }
}
